package com.atwisdom.star.auth.pojo;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 
 * @TableName privilege
 */
@TableName(value ="privilege")
@Data
public class Privilege implements Serializable {
    /**
     * 权限标识
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 角色标识
     */
    @TableField(value = "roleId")
    private Long roleId;

    /**
     * 资源标识
     */
    @TableField(value = "rescId")
    private Long rescId;

    /**
     * 菜单标识
     */
    @TableField(value = "menuId")
    private Long menuId;

    /**
     * 权限描述
     */
    @TableField(value = "prvlDescrib")
    private String prvlDescrib;

    /**
     * 类型代码
     */
    @TableField(value = "rescTypeCode")
    private String rescTypeCode;

    /**
     * 创建人账号
     */
    @TableField(value = "createdBy",fill = FieldFill.INSERT)
     private String createdBy;

    /**
     * 创建时间
     */
    @TableField(value = "createTime",fill = FieldFill.INSERT)
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern="yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

    /**
     * 修改人账号
     */
    @TableField(value = "updatedBy",fill = FieldFill.INSERT_UPDATE)
    private String updatedBy;

    /**
     * 修改时间
     */
    @TableField(value = "updateTime",fill = FieldFill.INSERT_UPDATE)
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern="yyyy-MM-dd HH:mm:ss")
     private LocalDateTime updateTime;

    /**
     * 业务系统标识
     */
    @TableField(value = "sysId")
    private String sysId;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}